package jp.co.sn.mml.pojo.tsfbitemzs1;


public class Tsfbitemzs1Id implements java.io.Serializable { 

	//チェックコード
	private String chkCd;
	//枝番
	private Long seq;

	/** default constructor */
	public Tsfbitemzs1Id(){

	}

	/** full constructor */
	public Tsfbitemzs1Id(String chkCd,Long seq){
		this.chkCd = chkCd;
		this.seq = seq;
	}

	//Property accessors
	public String getChkCd(){
		return this.chkCd;
	}

	public void setChkCd(String chkCd){
		this.chkCd=chkCd;
	}

	public Long getSeq(){
		return this.seq;
	}

	public void setSeq(Long seq){
		this.seq=seq;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Tsfbitemzs1Id))
			return false;

		Tsfbitemzs1Id castOther = (Tsfbitemzs1Id) other;

		return ((this.getChkCd() ==  castOther.getChkCd())
				||(this.getChkCd()!=null && castOther.getChkCd() !=null 
					&& castOther.getChkCd() !=null 
					&& this.getChkCd().equals(castOther.getChkCd())))
			&& ((this.getSeq() ==  castOther.getSeq())
				||(this.getSeq()!=null && castOther.getSeq() !=null 
					&& castOther.getSeq() !=null 
					&& this.getSeq().equals(castOther.getSeq())))
;	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getChkCd() == null ? 0 : this.getChkCd().hashCode());
		result = 37 * result
				+ (getSeq() == null ? 0 : this.getSeq().hashCode());
		return result;
	}

}